﻿using System;

namespace _08_静态构造函数
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(Test.Sample);
            Console.WriteLine(Test.Sample);
            Console.WriteLine(Test.Sample);
        }

        public class Test
        {
            public static string Sample { get; }
        
        static Test()
        {
            Sample = "演示属性";
            Console.WriteLine("静态构造函数被调用。");
        }
        }
    }
}
